import request from '@/utils/request'

const message = {
  list(params){
    return request.get("/system/sysMessage/list", { params })
  },
  setRead(id){
    return request.post(`system/sysMessage/read/${id}`)
  },
  setReadAll(id){
    return request.post(`system/sysMessage/readAll`)
  },
  setUnRead(id){
    return request.post(`system/sysMessage/unRead/${id}`)
  },
  getMyPopMessage(){
    return request.get(`system/sysMessage/getMyPopMessage`)
  }
}

export default message;
